﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;


namespace ClubInfrostructure
{
    class PlayerStatistic
    {
            public int  _playerID;
            public int _matches;
            public int _gools;
            public int _passesToGool;
            public int  _minutesPlayed;
            public int _yellwCards;
            public int _redCards;

            public PlayerStatistic()
            {
                this._playerID  = 0;
                this._matches   = 0;
                this._gools   = 0;
                this._passesToGool  = 0;
                this._minutesPlayed   = 0;
                this._yellwCards = 0;
                this._redCards  = 0;
            }  
            public void AddMatch(int ID, int minutes)
            {
                this._playerID    = ID ;
                this._matches++;
                this._minutesPlayed = _minutesPlayed + minutes;
            }

            public void AddGoal(int ID, int amount)
            {
                this._playerID = ID;
                this._gools  = _gools + amount ;
            }

            public void AddPass(int ID, int amount)
            {
                this._playerID = ID;
                this._passesToGool  = _passesToGool  + amount;
            }
            public void AddYellowCard(int ID, int amount)
            {
                this._playerID = ID;
                this._yellwCards  = _yellwCards  + amount;
            }
            public void AddRedCard(int ID)
            {
                this._playerID = ID;
                this._redCards++; ;
            }
    }
}
